package gui;

import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JWindow;

import ffmpegWrapper.FfmpegLocator;

public class Splash extends JWindow {


	/**
	 * Create the panel.
	 * @param x offset from left
	 * @param y offset from top
	 * @throws InterruptedException
	 */
	public Splash(int x, int y) throws InterruptedException {
		setBackground(new Color(0, 0, 0, 0));
		setBounds(x, y, 275, 144);
		setLayout(null);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setBounds(0, 0, 275, 144);
		lblNewLabel.setIcon(new ImageIcon(Splash.class.getResource("/imgs/logos/splash2.png")));
		add(lblNewLabel);

		setVisible(true);
		new FfmpegLocator();
		Thread.sleep(500);
		setVisible(false);
	}

}
